package com.wj.blog.service;

import com.wj.blog.pojo.User;
import com.wj.blog.utils.Page;
import com.wj.blog.utils.Result;

import java.util.List;

public interface UserService {
    User getByUsername(String username);

    void save(User user);

    void delete(Integer id);

    void update(User user);

    void updateInfo(User user);

    Page<List<User>>  getByPage(Page<User> user);

    User getById(Integer id);
}
